//
//  KYLikeCollectionCell.m
//  KCZ_B段项目
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 Sky. All rights reserved.
//

#import "KYLikeCollectionCell.h"
#import "FitHeader.h"
#import "FontSizeSingleTon.h"
#define Font [[FontSizeSingleTon shareFontSize]array]

@implementation KYLikeCollectionCell
-(instancetype)initWithFrame:(CGRect)frame
{//这是collecviewcell的自定义cell猜你喜欢第一种不带图片的cell
   self = [super initWithFrame:frame];
    if (self) {
        _typeImage = [[UIImageView alloc]init];
        _typeImage.backgroundColor = [UIColor colorWithRed:0.91 green:0.91 blue:0.91 alpha:1];
        _typeImage.layer.masksToBounds = YES;
        _typeImage.layer.cornerRadius = 10 * ht;
        [self.contentView addSubview:_typeImage];
        _xinImage = [[UIImageView alloc]init];
        [_typeImage addSubview:_xinImage];
        _titleLabel = [[UILabel alloc]init];
        [_typeImage addSubview:_titleLabel];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _typeImage.frame = CGRectMake(0, 0, 80 * wt, 30 * ht);
    _xinImage.frame = CGRectMake(20 * wt, 7 * ht, 16 * wt, 16 * ht);
    _titleLabel.frame = CGRectMake(_xinImage.frame.origin.x + _xinImage.frame.size.width + 5 * wt, _xinImage.frame.origin.y, 25 * wt, _xinImage.frame.size.height);
    _titleLabel.font = [UIFont systemFontOfSize:[Font[2] integerValue]];
    _titleLabel.textAlignment = NSTextAlignmentCenter;
}
@end
